package com.usian.apis.admin;

/**
 * ClassName: AdSensitiveControllerApi
 * Author:   WGG
 * Date:    2022-11-2022/11/10-16:27
 * Version: 1.0
 * Description:
 */


import com.usian.model.admin.dtos.SensitiveDto;
import com.usian.model.admin.pojos.AdSensitive;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
* 对外提供的服务暴露接口
*/
@Api(value = "敏感词管理",tags = "sensitive",description = "敏感词管理API")
public interface AdSensitiveControllerApi {

    /**
     * 根据名称分页查询
     * @param sensitiveDto
     * @return ResponseResult
     */
    @ApiOperation(value = "分页查询")
    public ResponseResult findByPageAndName(SensitiveDto sensitiveDto);

    /**
     * 添加敏感词
     * @param adSensitive
     * @return ResponseResult
     */
    @ApiOperation(value = "添加敏感词")
    public ResponseResult save(AdSensitive adSensitive);

    /**
     * 修改敏感词
     * @param adSensitive
     * @return ResponseResult
     */
    @ApiOperation(value = "修改敏感词")
    public ResponseResult update(AdSensitive adSensitive);

    /**
     * 根据id删除
     * @param id
     * @return ResponseResult
     */
    @ApiOperation(value = "根据id删除")
    public ResponseResult del(Integer id);


}
